<?php

namespace Emoney\EpayBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PayementType
 *
 * @author FFOZEU
 */
class PayementType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('title','text',array('required' => true, 'label' => 'Mode paiement', 'trim' => true));
        $builder->add('smsFormat', 'text', array('required' => false, 'label' => 'Format SMS', 'trim' => true));
        $builder->add('icone', 'file', array('required' => true, 'label' => 'Logo'));
        $builder->add('emoneyAccount', 'text', array('required' => true, 'label' => 'Emony account'));
    }

    public function getName()
    {
        return 'payement';
    }
    
    public function getDefaultOptions(array $options)
    {
        return array(
            'data_class' => 'Emoney\EpayBundle\Entity\PayementMode',
        );
    }
}

?>
